package io.github.jianjianghui.groot.core;

/**
 * 幂等配置
 *
 * @author <a href="https://www.github.com/jianjianghui">Jianghui Jian<a/>
 * @date 2021/8/27 - 12:57
 */
public class GrootConfig {
    /**
     * 启用幂等
     */
    private boolean enable;

    /**
     * 幂等头标识
     */
    private String headerTag;

    /**
     * 幂等头标识不存在(非法)
     */
    private String headerTagNotFound = "The idempotent header does not exist";

    /**
     * 幂等头标识内容非法(非法)
     */
    private String headerTagIllegalContent = "The content of the idempotent header is illegal";

    /**
     * 幂等头拦截(被拦截)
     */
    private String headerTagVerificationFailed = "Request blocked";


    public boolean isEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }

    public String getHeaderTag() {
        return headerTag;
    }

    public void setHeaderTag(String headerTag) {
        this.headerTag = headerTag;
    }

    public String getHeaderTagNotFound() {
        return headerTagNotFound;
    }

    public void setHeaderTagNotFound(String headerTagNotFound) {
        this.headerTagNotFound = headerTagNotFound;
    }

    public String getHeaderTagIllegalContent() {
        return headerTagIllegalContent;
    }

    public void setHeaderTagIllegalContent(String headerTagIllegalContent) {
        this.headerTagIllegalContent = headerTagIllegalContent;
    }

    public String getHeaderTagVerificationFailed() {
        return headerTagVerificationFailed;
    }

    public void setHeaderTagVerificationFailed(String headerTagVerificationFailed) {
        this.headerTagVerificationFailed = headerTagVerificationFailed;
    }
}
